﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 
/// </summary>
[SugarTable("BoardDevice","")]
public class BoardDevice  : EntityBase
{
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "DeviceNo", ColumnDescription = "", Length = 32)]
    public string? DeviceNo { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "DeviceName", ColumnDescription = "", Length = 100)]
    public string? DeviceName { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "DevicePlace", ColumnDescription = "")]
    public long? DevicePlace { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "DeviceState", ColumnDescription = "")]
    public int? DeviceState { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "Demo", ColumnDescription = "", Length = 32)]
    public string? Demo { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "")]
    public long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "", Length = 64)]
    public string? CreateOrgName { get; set; }

    /// <summary>
    /// 设备位置
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    [Navigate(NavigateType.OneToOne, nameof(DevicePlace))]
    public BoardPlace Place { get; set; }

}
